extends layout

block meta
    link(rel="stylesheet", href="#{options.cdn_path}/kindeditor/plugins/code/prettify.css?v=#{options.site_version}")

block content
    include common/_post
    aside.sidebar.c-4-12
        #sidebars.g
            .sidebar
                include common/_sidebar

block script
    script#bdimgshare_shell(src='http://bdimg.share.baidu.com/static/js/imgshare_shell.js?cdnversion=384078')
    script#bdshare_js(type='text/javascript', data='type=tools&mini=1&uid=310598')
    script#bdshell_js(type='text/javascript', src='http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=384078')
    script(type='text/javascript')
        // duoshuo config
        var duoshuoQuery = {short_name:"#{options.duoshuo_domain }"};
        (function() {
            var ds = document.createElement('script');
            ds.type = 'text/javascript';ds.async = true;
            ds.src = 'http://static.duoshuo.com/embed.js';
            ds.charset = 'UTF-8';
            (document.getElementsByTagName('head')[0]
            || document.getElementsByTagName('body')[0]).appendChild(ds);
        })();
        // wumii config
        var wumiiPermaLink = "#{options.site_url}/blog/#{blog.id}"; //请用代码生成文章永久的链接
        var wumiiTitle = "#{blog.title}"; //请用代码生成文章标题
        var wumiiTags = "nodejs, coffee-script, java"; //请用代码生成文章标签，以英文逗号分隔，如："标签1,标签2"
        var wumiiSitePrefix = "#{options.site_url}/";
        var wumiiParams = "&num=5&mode=2&pf=Jnode";
        // baidu share
        var bdShare_config_imgshare = {
        "type":"list"
        ,"size":"small"
        ,"pos":"bottom"
        ,"color":"black"
        ,"list":["qzone","tsina","tqq","renren","t163"]
        ,"uid":"310598"
        };
        document.getElementById("bdimgshare_shell").src="http://bdimg.share.baidu.com/static/js/imgshare_shell.js?cdnversion=" + Math.ceil(new Date()/3600000);
        document.getElementById("bdshell_js").src="http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000);
    script(type="text/javascript", src="http://widget.wumii.com/ext/relatedItemsWidget")
